import { mock, setup } from "mockjs";
import banner from './banner';
import floor from './floor';

setup({
  timeout: '300-600'
});

const config = {
  "/mock/banner": banner,
  "/mock/floor": floor,
};

const init = () => {
  Object.entries(config).map(item => mock.apply(null, item))
};

export default init;
